package com.hooper.iot.viid.controller;

import com.hooper.iot.viid.service.ViidService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


@Slf4j
@RestController
@RequestMapping(value = "/viid")
public class ViidController {

    @Resource
    private ViidService viidService;

    @PostMapping("/notice")
    public void notice(@RequestBody String msg) {
        log.info("VIID ==> 人员记录：{}", msg);
        viidService.acceptAndSendRecord(msg);
    }
}

